import {createApp} from 'vue'
// import './style.css'
import 'vant/es/toast/style';
import 'vant/es/dialog/style';
import 'vant/es/notify/style';

import App from './App.vue'
// @ts-ignore
import router from './router'
import {Button, Loading, Empty, Image as VanImage} from 'vant'
//使用pinia
import {createPinia} from 'pinia'
import piniaPersist from 'pinia-plugin-persist'

//设置cookie插件
import VueCookies from 'vue-cookies'


const pinia = createPinia()
pinia.use(piniaPersist)


const app = createApp(App)

// @ts-ignore
app.config.globalProperties.$cookies = VueCookies

app
    .use(Button)
    .use(Loading)
    .use(Empty)
    .use(pinia)
    .use(router)
    .mount('#app')
